package com.jiyun.h2303b.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "h2303b-cloud-account",fallback = AccountFeignServiceFallBack.class)
public interface AccountFeignService {


    @RequestMapping("account/debit")
    public void debit(@RequestParam("userId") int userId,@RequestParam("money")  int money);
}
